package com.bank.basic.service;

import com.bank.model.entity.Deposit;
import com.bank.model.entity.Loan;
import com.bank.model.vo.deposit.DepositVo;
import com.bank.model.vo.loan.LoanManagementVo;
import com.bank.model.vo.loan.LoanVo;
import org.omg.CORBA.LongLongSeqHelper;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/3/28 11:34
 */
public interface LoanService {
    List<LoanVo> queryListVo(Long userId);
    List<LoanVo> queryListVoManager();
    List<LoanManagementVo> queryLoanManagementVo();
    List<Loan> queryAll();
    List<Loan> queryList(Long userId);
    List<Loan> queryAccount(String accountId);
    List<Loan> queryUser(Long userId);
    Loan queryLoan(Date date);
    void addLoan(LoanVo loanVo, MultipartFile file) throws IOException;
    void updateLoanState(Long loanId,Boolean ifPass);
    void delLoan(Long loanId);

    void download(Long loanId, HttpServletResponse httpServletResponse);
}
